#include "StarItemProcessor.h"
#include "PlayerPlane.h"
#include "MainLayer.h"

StarItemProcessor::StarItemProcessor(void)
{
	_exp = 0;
}


StarItemProcessor::~StarItemProcessor(void)
{
}

void StarItemProcessor::process( PlayerPlane* plane, MainLayer* mainLayer )
{
	mainLayer->setStar(mainLayer->getStar() + 1);
	mainLayer->setScore(mainLayer->getScore() + 1);
}

void StarItemProcessor::parseXml( xml_node node )
{
	int exp = node.child("Exp").text().as_int();
	setExp(exp);
}
